package Factory;

import DAO.*;
import POJO.*;

public abstract class DAOFactory {

    public static final int POSTGREDAOFACTORY = 1;
    public static final int MYSQLDAOFACTORY = 2;

    protected abstract DAO<Master> getMasterDAO();

    protected abstract DAO<Enseignement> getEnseignementDAO();

    protected abstract DAO<Inscription> getInscriptionDAO();

    public static DAOFactory getDAOFActory(int i){
        switch(i){
            case 1:{
                return new PostgresDAOFactory();
            }
            default:{
                return new MySQLDAOFactory();
            }
        }
    }
}
